package com.wing.storage.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 产品库存记录
 *
 * @author xiayang
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pro_product_inventory_record")
public class ProductInventoryRecord extends BaseEntity<ProductInventoryRecord> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 最新单价
     */
    private BigDecimal currentCostPrice;

    /**
     * 出入库类型
     */
    private Long inoutType;

    /**
     * 出入库作业单
     */
    private Long inoutWorkJob;

    /**
     * 产品库存详细ID
     */
    private Long productInventoryDetailId;

    /**
     * 当前库存
     */
    private BigDecimal quantityCurrent;

    /**
     * 出入库数量
     */
    private BigDecimal quantity;

    /**
     * 变动后库存
     */
    private BigDecimal quantityAfter;

}
